home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
rbbs_pc
/
newdir11.zip
/
NEWDIR.DOC
< prev
Wrap
Text File
|
1991-11-06
|
6KB
|
108 lines
*>>NEWDIRECTORY<<*
Version 1.1
DOS Directory Renaming Utility
by Bob Giesen
(C) Copyright, 1991
~~~~~~~~~~~~~~~~~~~
This simple command utility is for those who, like I, have experienced
regret for having named a certain directory one way, only to wish to change
it to something simpler or more appropriate.
Through DOS 4.01 (the newest version this PC slave owns), renaming DOS
directories is not directly possible. The only way to do it is through the
use of four commands: Mkdir (or md), Copy, Del, and Rmdir (or rd), assuming
you have files in the directory you wish to rename. Using the DOS commands
on a directory containing many files may require a good amount of free disk
space or, lacking that, can become a study in tedium if one is forced to copy
and delete the files one at a time.
To use this utility, first be sure to either be in the directory where the
program resides (NEWDIR.EXE) or else put it into a directory that is included
in your PATH command (in your AUTOEXEC.BAT file). I highly recommend accessing
it via the PATH command. For those of you who are new to this, the PATH
command simply tells the computer where to look for commands when you enter
them in the DOS environment. If you are leary of editing your AUTOEXEC.BAT
file, simply copy NEWDIR.EXE into your DOS directory. This accomplished,
you may then simply type "newdir" from within any directory to run it.
Once the program is in the directory in which you want it, you may wish
to rename it. I suggest "ND.EXE". Saves keystrokes. Again, for those of
you who are neophytes, simply enter "ren newdir.exe nd.exe" or "rename
newdir.exe nd.exe" while you are in the directory where NEWDIR.EXE resides.
To run the program, simply type "newdir" (or "nd" or whatever you have
renamed it - the ".exe" extension is optional/unnecessary). You will be
prompted to enter the COMPLETE path of the directory (or subdirectory) you
wish to rename. An example entry will be shown to help you if you are unsure
of what that means. Then you will be asked to enter the new, COMPLETE
directory pathname you wish to use. Again, an example will be shown. You
will have the opportunity to back out of the command before naming the new
directory simply by hitting Ctrl-C or Ctrl-Brk (hold down the [Control] key
while hitting either the [C] or [Break] key). It's that simple!
------------------------------------------------------------------------------
OPTIONS:
NEWDIR (pathname)
From DOS, enter the name of the directory (including full path) after
the command. This will save you from being asked to enter it after
the program starts (save a couple of seconds...). You will still be
asked to verify that is is correct.
e.g.: "newdir c:\games\cards"
NEWDIR45 [(PATHNAME)]
For those of you who have Microsoft's QuickBASIC 4.5 (R), you may use
the NEWDIR45.EXE file instead of NEWDIR.EXE (saves disk space). Just
be sure that you have BRUN45.EXE in your current path. Again, you
may wish to shorten the name of the executable file to "nd.exe".
SUGGESTION:
Delete the .exe file that you do not need from your disk in order
to save space. If you don't have BRUN45.EXE available, you don't
need NEWDIR45.EXE. Conversely, if you can use NEWDIR45.EXE, save
several kb of disk space by deleting NEWDIR.EXE. Just don't
distribute this program with either file missing (see the note
below regarding this).
------------------------------------------------------------------------------
New to version 1.1
NEWDIRECTROY will now check for illegal directory name lengths. (DOS
allows no more than 11 characters in a directory name.)
Version 1.0 allowed directory name entries (outside of command line)
that didn't include drive designations. Fixed, for safety's sake, in
version 1.1.
------------------------------------------------------------------------------
Etcetera...
This software is provided as is without warranty of any kind, explicit or
implied. The user accepts sole responsibility for any consequences of its
use.
You may freely copy, use, and/or distribute this program, so long as no
compensation is required other than a reasonable amount for materials and
shipping and handling, not to exceed $5 IN AGGREGATE, and so long as it is
not packaged with any other software on the same medium (e.g., disk). When
distributing this program in any manner, the three files found herein
(NEWDIR.EXE, NEWDIR45.EXE, AND NEWDIR.DOC) must be distributed together
without modification, except to use a file compression utility, such as LHA,
LHARC, ZIP, ARC, etc.
This software is offered as shareware - if you like it, share it! The
author requires no compensation, but any contributions would be DEEPLY
appreciated! If you find it within your heart to send just a dollar, I
would be most appreciative. Contributions of $2, $5 or more will encourage
more programming on my part and will give you a discount on any future
shareware by this author that you choose to register (not to mention a
good feeling for doing the right thing).
Contributions may be sent to: Bob Giesen
42 Highland St.
Calumet City, IL 60409